package com.diankangwo.factory.dao;

import com.diankangwo.factory.entity.TdDistrict;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface TdDistrictMapper {
    int deleteByPrimaryKey(Integer districtid);

    int insert(TdDistrict record);

    int insertSelective(TdDistrict record);

    TdDistrict selectByPrimaryKey(Integer districtid);

    int updateByPrimaryKeySelective(TdDistrict record);

    int updateByPrimaryKey(TdDistrict record);

    /**
     * 根据城市id获取街道
     */
    List<TdDistrict> queryByCityId(int cityid);
}